/**
 *  OSS
 */
import {
    getTemOssAuth,
    saveOssFile2sysfile
} from '@/services/aliyunOss/aliyunOss'

export default {
    namespace: 'aliyunOss',
    state: {
        datas: []
    },
    effects: {
        * getTemOssAuth({ payload, callback }, { call }) {
            const response = yield call(getTemOssAuth, payload);
            if (callback) { callback(response) }
        },

        * saveOssFile2sysfile({ payload, callback }, { call }) {
            const response = yield call(saveOssFile2sysfile, payload);
            if (callback) { callback(response) }
        },

    },

    reducers: {},
};
